@/*
    select标签中各个参数的说明:
    name : select的名称
    id : select的id
	hasEmpty:false
    code : 字典的code
    map : 选项map 示例：{'1':'目录','2':'菜单','3':'权限'};
    width: 自定义宽默认160px
    underline : 是否带分割线
    onSelect:selectHandler
    multiple:multiple 多选
@*/
@var selectHandler=null;
@if(isNotEmpty(onSelect)){
@	selectHandler=" data-options='onSelect:"+onSelect+"'";
@}
@hasEmpty = isEmpty(hasEmpty)?'true':hasEmpty;
@hasEmpty = hasEmpty=='true'?true:false;
<div class="form-group">
	@if(!isEmpty(name)){
	<label class="lab">${name}</label>
	@}
    <div class="ele ${isEmpty(name)?'ele-fit':''}">
        <select id="${id}" name="${id}" ${selectHandler!} class="hisui-combobox"
       @if(isNotEmpty(multiple)){
            multiple="${multiple}"
			@if(isEmpty(width)){
			@	width="100%";
			@}
       @}else{
			@if(isEmpty(width)){
			@	width="160px";
			@}
       @}
        style="width:${width!}"
        >
        	@var _map = null;
			@if(!isEmpty(map)){
				@_map = map;
			@}
			@if(!isEmpty(code)){
				@_map = getDictsByCode(code);
			@}
			@if(hasEmpty){
			<option value=""></option>
			@}
			@if(isEmpty(_map)){
				${tagBody!}
			@}else{
				@for(ele in _map){
					@if((ele.key+'')==(value!''+'')){
						<option value="${ele.key}" selected = "selected" >${ele.value}</option>
					@}else{
						<option value="${ele.key}">${ele.value}</option>
					@}
				@}
			@}
        </select>
		@if(isNotEmpty(tips)){
	        <span class="help-block m-b-none">${tips!}</span>
		@}
    </div>
</div>
@if(isNotEmpty(underline) && underline == 'true'){
    <div class="hr-line-dashed"></div>
@}


